/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.impulserobotics;
import edu.wpi.first.wpilibj.camera.AxisCamera;
import edu.wpi.first.wpilibj.camera.AxisCamera.ResolutionT;


/**
 *
 * @author Sahil Jain and Terry Tong
 */
public class CameraTracker {
    
    AxisCamera camera;
    
    public CameraTracker(){
        camera = AxisCamera.getInstance();
        camera.writeResolution(AxisCamera.ResolutionT.k160x120);
        camera.writeBrightness(0);
    }
        
    public boolean imgnew (){
    return camera.freshImage();
    }
    public int cambrightness(){
    return camera.getBrightness();
    }
    public void setRes(int i){
        
        switch (i){
            case 1: camera.writeResolution(ResolutionT.k640x480);
            case 2: camera.writeResolution(ResolutionT.k640x360);
            case 3: camera.writeResolution(ResolutionT.k320x240);
            case 4: camera.writeResolution(ResolutionT.k160x120);
        }        
     }
    public void processImg(){
    
    }
}

    


